x86/IO-APIC: fix setting of destinations
authorJan Beulich <jbeulich@suse.com>
Thu, 19 Nov 2015 15:46:10 +0000 (16:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 19 Nov 2015 15:46:10 +0000 (16:46 +0100)
commit65288cf610ccf1aae423f65ac67ee5dbeff252a1
tree4e287e1fae4651647131df26e7fcd09e4688f3b5
parent5ed662ee62b02abbd02525dc8ac0cbf2e8182e88
x86/IO-APIC: fix setting of destinations

In commit a85da715cf ("x86/IO-APIC: adjust setting of destinations") I
made a pretty blatant mistake: get_apic_id() can be used there only
when running APICs in physical mode. For both flat and clustered modes
the change was wrong, causing different kinds of boot problems on
affected systems. Don't revert that change though, but use TARGET_CPUS
(equaling cpu_online_map, and with there only being a single online CPU
fulfilling the original commits intention).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/io_apic.c